package com.h3c.nem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.h3c.nem.dto.TbOfferAttachmentDTO;
import com.h3c.nem.entity.TbOfferAttachment;
import com.h3c.nem.vo.TbOfferAttachmentVO;

import java.util.List;
import java.util.Map;

/**
 * offer附件图片接口类
 *
 * @author chenyifan
 * @since 2022-06-02 17:14:07
 */
public interface ITbOfferAttachmentService extends IService<TbOfferAttachment> {

    /**
     * 保存附件信息
     *
     * @param attachmentDTO
     * @return
     */
    Map<String, String> saveAppendInfo(TbOfferAttachmentDTO attachmentDTO);

    /**
     * 回显附件信息
     *
     * @return
     */
    Map<String, Object> showAppendInfo();

    /**
     * 查询附件id
     *
     * @param fileType 附件类型
     * @param workerId 预备员工工号
     * @return 附件id
     */
    String getOfferWorkerFileId(Integer fileType, String workerId);
    Map<String, String> getOfferWorkerFileIdList(Integer fileType, List<String> workerId);

    /**
     * 查询附件信息
     *
     * @param fileType 附件类型
     * @param workerId 预备员工
     * @return
     */
    List<TbOfferAttachmentVO> getOfferAttachment(Integer fileType, String workerId);

    /**
     * 更新未审核的头像附件
     *
     * @param avatarId
     * @param avatarName
     */
    void updateAvatarAttachmentInfo(String avatarId, String avatarName);

    /**
     * 更新人员工卡照片状态
     *
     * @Param: attachmentId 附件ID
     * @Param: phoneNo 电话号码
     * @Param: isPass 是否通过
     * @Param: rejectReason 拒绝意见
     * @Author: h24002
     * @Date: 2022/6/24
     */
    Boolean updateWorkerCardImageStatus(String attachmentId, String phoneNo, Boolean isPass, String rejectReason);
}

